package com.hc.fdkforwarders.controller;


import com.hc.fdkforwarders.common.Result;
import com.hc.fdkforwarders.service.AllSkuListService;
import com.hc.fdkforwarders.vo.AllSkuListVO_3;
import com.hc.fdkforwarders.vo.GoodsNumCoListQueryVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/forwarder")
public class AllSkuListController {

    @Resource
    AllSkuListService allSkuListService;

    @PostMapping("/goods/num/common/list")
    public Result<AllSkuListVO_3> queryAllSku(@RequestBody GoodsNumCoListQueryVO goodsNumCoListQueryVO){

        return Result.ok(allSkuListService.queryAllSkuList(goodsNumCoListQueryVO));

    }
}
